﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;

namespace MethodWorx.CMS.Plugins
{
    public static class PluginUrlHelper
    {
        public static string GlobalPluginAction(IdeExtension extension, string action)
        {
            var context = new HttpContextWrapper(HttpContext.Current);
            return UrlHelper.GenerateContentUrl("~/GlobalPlugin/" + extension.Id.ToString() + "/" + action, context);
        }
    }
}
